package org.caijuan.transaction.programmingtransaction;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Service;

@Slf4j
@Service
@EnableAsync
class AsyncFailService {
    @Async
    public void asyncFail() {
        log.info("{}", Thread.currentThread().getName());
    }
}